package com.fcscs.cservice.ws.client.inroomservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.inroomservice.GetEntityVersionViewRequest;
import com.fcscs.cservice.ws.schema.inroomservice.GetEntityVersionViewResponse;

public class GetEntityVersionViewClient extends WebServiceGatewaySupport {
	private static final Logger LOG = Logger.getLogger(GetEntityVersionViewClient.class);

	public GetEntityVersionViewResponse getEntityVersionViewMenu(GetEntityVersionViewRequest req) {
		GetEntityVersionViewResponse resp = (GetEntityVersionViewResponse)getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("---------- GetEntityVersionViewResponse: " + (resp.getEntityVersionList() == null ? 0 : resp.getEntityVersionList().size()));
		return resp;
	}
}
